
import { NavLink } from 'react-router-dom';
import "./style.scss"
import React, { Component } from 'react';

class Index extends Component {
    render() {
        const {routes}=this.props
        return (
            <footer>
            {
                routes.length&&routes.map((v,i)=>{
                    return(
                        <NavLink to={v.path} key={i}>{v.name}</NavLink>
                    )
                })
            }
        </footer>
        );
    }
}

export default Index;
